package com.ftf.tp.common.annotation;

import com.fasterxml.jackson.annotation.JsonProperty;
import org.springframework.stereotype.Component;

import java.lang.annotation.*;

/**
 * es主键
 *
 * @author tanghao
 */
@Documented
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@JsonProperty(value = "_id", access = JsonProperty.Access.WRITE_ONLY)
public @interface DocId {

}
